package com.zyl.blog.common.config.http;

import lombok.Data;

import java.time.Duration;
import java.util.HashMap;
import java.util.Map;

/**
 * @version v1.0
 * @ProjectName: Personal_Blog
 * @Package: com.zyl.common.config
 * @ClassName: BaseHttpConfig
 * @Description: 基础HTTP配置（所有模块共用）
 * @Author FinalFantasy
 * @Date 2025/3/14-22:46
 */
@Data
public abstract class BaseHttpConfig {
    private String baseUrl;
    private Duration connectTimeout = Duration.ofSeconds(30);
    private Duration responseTimeout = Duration.ofSeconds(60);
    private Map<String, String> defaultHeaders = new HashMap<>();
    private boolean enableLogging = true;
}
